package com.heima.article.controller;

import com.heima.article.service.CollectionBehaviorService;
import com.heima.model.article.dtos.CollectionBehaviorDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 许敦军
 * @version 1.0
 * @project heima-leadnews
 * @date 2024/1/25 19:27:28
 */
@RestController
@RequestMapping("/api/v1/collection_behavior")
public class CollectionBehaviorController {
    @Autowired
    private CollectionBehaviorService collectionBehaviorService;



    /**
     * 收藏行为
     *
     * @return {@link ResponseResult}
     */
    @PostMapping
    public ResponseResult collectionBehavior(@RequestBody CollectionBehaviorDto collectionBehaviorDtoc){
        return collectionBehaviorService.collectionBehavior(collectionBehaviorDtoc);
    }

}
